# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class AuditLogDetail(object):

    def __init__(self, clientIp=None, clientIpName=None, clientPort=None, clientMac=None, clientHostName=None, clientMacAddr=None, dbName=None, tableName=None, dbUser=None, dbTool=None, sqlIdentity=None, sqlType=None, target=None, affectLines=None, duration=None, captureTime=None, sqlQuery=None, sqlResult=None, riskLevel=None, riskRuleId=None, riskRuleName=None, riskRuleType=None, riskRuleGroup=None, riskDesc=None, executeResult=None):
        """
        :param clientIp: (Optional) 客户端IP
        :param clientIpName: (Optional) 客户端IP名称
        :param clientPort: (Optional) 客户端端口
        :param clientMac: (Optional) 客户端MAC
        :param clientHostName: (Optional) 客户端主机名称
        :param clientMacAddr: (Optional) 客户端主机MAC地址
        :param dbName: (Optional) 操作的数据库名称
        :param tableName: (Optional) 操作的数据库表名称
        :param dbUser: (Optional) 数据库用户名
        :param dbTool: (Optional) 数据库工具
        :param sqlIdentity: (Optional) 查询语句标识
        :param sqlType: (Optional) 操作类型
        :param target: (Optional) 操作对象
        :param affectLines: (Optional) 影响行数
        :param duration: (Optional) 执行时间,如5μs,3ms
        :param captureTime: (Optional) 捕获时间
        :param sqlQuery: (Optional) SQL详细语句
        :param sqlResult: (Optional) SQL语句执行结果
        :param riskLevel: (Optional) 风险级别: 0->无风险，1->低风险，2->中风险，3->高风险
        :param riskRuleId: (Optional) 命中规则ID
        :param riskRuleName: (Optional) 命中规则名称
        :param riskRuleType: (Optional) 命中规则类型
        :param riskRuleGroup: (Optional) 命中规则所属规则组名称
        :param riskDesc: (Optional) 命中规则详细描述
        :param executeResult: (Optional) 执行结果：
0：默认
1：未知
2：登录成功
3：登录失败
4：超时
5：执行成功
6：执行失败
7：语句不合法
8：注销
9：会话开始
10：阻断
11：会话断开
        """

        self.clientIp = clientIp
        self.clientIpName = clientIpName
        self.clientPort = clientPort
        self.clientMac = clientMac
        self.clientHostName = clientHostName
        self.clientMacAddr = clientMacAddr
        self.dbName = dbName
        self.tableName = tableName
        self.dbUser = dbUser
        self.dbTool = dbTool
        self.sqlIdentity = sqlIdentity
        self.sqlType = sqlType
        self.target = target
        self.affectLines = affectLines
        self.duration = duration
        self.captureTime = captureTime
        self.sqlQuery = sqlQuery
        self.sqlResult = sqlResult
        self.riskLevel = riskLevel
        self.riskRuleId = riskRuleId
        self.riskRuleName = riskRuleName
        self.riskRuleType = riskRuleType
        self.riskRuleGroup = riskRuleGroup
        self.riskDesc = riskDesc
        self.executeResult = executeResult
